﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.IO;

using globrealModel;

public partial class admin_search_property_torent : System.Web.UI.Page
{
    globrealEntities db = new globrealEntities();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["email"] == null)
        {
            Session["email"] = "admin";
        }
        Label2.Text = Session["email"].ToString();
        if (Page.IsPostBack)
        {
        }
        else
        {
            //GridView2.Visible = true;
          //  GridView1.Visible = false;
        }
        BindArry();
        
    }

    private void BindArry()
    {
        ddlptype.DataSource = db.asset_name.Where(p => p.language == 1);
        ddlptype.DataBind();
        ddlprcon.DataSource = db.help_table.Where(p => p.help_type == 2);
        ddlprcon.DataBind();
        ddlelv.DataSource = db.help_table.Where(p => p.help_type == 4);
        ddlelv.DataBind();
        ddlparkin.DataSource = db.help_table.Where(p => p.help_type == 5);
        ddlparkin.DataBind();
        ddlac.DataSource = db.help_table.Where(p => p.help_type == 7);
        ddlac.DataBind();
        coins.DataSource = db.help_table.Where(p => p.help_type == 1);
        coins.DataBind();

        ddcustomer.DataSource = db.help_table.Where(p => p.help_type == 1);
        ddcustomer.DataBind();
       
        
        
    }
    //protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //   GridView1.Visible = true;
    //}
    //protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e)
    //{

    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList5_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //  GridView1.Visible = true;
    //}
    //protected void DropDownList6_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;

    //}
    //protected void DropDownList7_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //   GridView1.Visible = true;

    //}
    //protected void DropDownList8_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //  GridView1.Visible = true;

    //}
    //protected void DropDownList9_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    // GridView1.Visible = true;
    //}
    //protected void DropDownList10_SelectedIndexChanged(object sender, EventArgs e)
    //{
    //    //GridView1.Visible = true;
    //}
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect("../admin.aspx");
    }

    
    protected void Button1_Click(object sender, System.EventArgs e)
    {
      int str;
       
       
    }

    protected void Button2_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("to_rent.aspx");
    }
}

//protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
//{

//}
